package org.example.blogserver.service;

import org.example.blogserver.entity.Article;
import org.example.blogserver.vo.Result;
import org.example.blogserver.vo.params.ArticleIdParam;
import org.example.blogserver.vo.params.ArticleParam;

import java.util.List;

public interface ArticleService {

    Result addArticle(String token, ArticleParam articleParam);

    Result deleteArticleById(String token, Long id);

    Result updateArticle(String token, ArticleIdParam articleIdParam);

    Result findArticleVoById(Long articleId);

    Result findArticlesByAuthorAccount(String authorAccount);

    Result findArticlesByIsPublic(boolean isPublic);

    Result addLike(Long articleId);

    Result addView(Long articleId);


}
